function jQlazyLoad(){
    //监控滚动条
    let temp1 = window.innerHeight||document.documentElement.clientHeight
    let temp2 = document.body.scrollTop||document.documentElement.scrollTop
    //获取总可视高度
    let totalHeight = temp1+temp2
    //获取所有图片并遍历
    $('img').each((i,item)=>{
        //判断，修改路径
        if(item.offsetTop<=totalHeight){
            let srcReal = $(item).attr('src-real')
            $(item).attr('src',srcReal)
        }
    })
}
jQlazyLoad()
$(window).srcoll(function(){
    jQlazyLoad()
})
